package com.ge.modules.base.service.impl;

import com.ge.modules.base.service.TbProvinceService;
import com.ge.modules.dao.TbProvinceDao;
import com.ge.modules.entity.TbProvinceEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TbProvinceServiceImpl implements TbProvinceService {
    @Autowired
    private TbProvinceDao tbProvinceDao;

    @Override
    public TbProvinceEntity queryObject(Integer provinceid) {
        return tbProvinceDao.queryObject(provinceid);
    }

    @Override
    public List<TbProvinceEntity> queryList(Map<String, Object> map) {
        return tbProvinceDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tbProvinceDao.queryTotal(map);
    }

    @Override
    public void save(TbProvinceEntity province) {
        tbProvinceDao.save(province);
    }

    @Override
    public void update(TbProvinceEntity province) {
        tbProvinceDao.update(province);
    }

    @Override
    public void delete(Integer provinceid) {
        tbProvinceDao.delete(provinceid);
    }

    @Override
    public void deleteBatch(Integer[] provinceids) {
        tbProvinceDao.deleteBatch(provinceids);
    }

    @Override
    public List<TbProvinceEntity> getList() {
        return tbProvinceDao.getList();
    }

}
